package com.study.common.response;

/**
 * @author chenxl
 * 响应码 枚举类
 */
enum ResponseCode {
    /**
     * 操作成功
     */
    SUCCESS("200", "成功"),
    /**
     * 操作失败
     */
    FAILED("300", "失败"),
    /**
     * 出现异常
     */
    EXECPTION("400", "操作异常"),
    /**
     * 缺少认证
     */
    NOAUTH("500", "缺少认证信息"),
    /**
     * 认证失败
     */
    AUTHERROR("501", "认证失败");
    private final String code;
    private final String msg;

    ResponseCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }
}
